package thread;

import static java.lang.Thread.sleep;
//实现 Runnable 接⼝
public class ThreadDemo3 {
    public static void main(String[] args) throws InterruptedException {
        Runnable runnable = new MyThread3();
        Thread t = new Thread(runnable);
        t.start();

        while (true) {
            System.out.println("hello main");
            sleep(1000);
        }
    }
}
